<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>还款查询</title>

    <!-- Bootstrap Core CSS -->
    <link href="/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="/vendor/metisMenu/metisMenu.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="/dist/css/sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <!-- Datepicker CSS -->
    <link th:href="@{/vendor/datepicker/datepicker3.css}" rel="stylesheet" type="text/css">

    <!-- BootstrapTables CSS -->
    <link href="/vendor/bootstrap-table/css/bootstrap-table.css" rel="stylesheet">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->


</head>

<body>

<div id="wrapper">
    <div id="page-wrapper"  style="margin-left:0">
        <div class="row">
            <div class="col-lg-12">
                <h1 class="page-header">还款计划表</h1>
            </div>
            <!-- /.col-lg-12 -->
        </div>
        <form id="formTable" th:action="@{/PayOne}"  th:object="${utilization_entity}" method="post" >
            <div id="divTable" class="panel panel-default">
            <div class="panel-heading">
                <h4 class="panel-title">
                    <ul id="myTabOne" class="nav nav-tabs">
                        <li class="active"><a href="#home" data-toggle="tab">还款查询</a></li>
                        <li><a href="javascript:void(0)" id="a_add">保存</a></li>
                        <li><a href="javascript:void(0)" id="a_count">重新计算</a></li>
                        <li><a href="javascript:void(0)" id="a_start">重新启用</a></li>
                        <li><a href="javascript:void(0)" id="a_adddwon">向下增</a></li>
                        <li><a href="javascript:void(0)" id="a_addup">向上增</a></li>
                        <li><a href="javascript:void(0)" id="a_delete">删除</a></li>
                        <li><a href="javascript:void(0)" id="a_derivar">导出</a></li>
                    </ul>
                </h4>
            </div>
            <div id="collapse20" class="panel-collapse collapse in">
                <div class="panel-body">
                    <div class="row">
                        <label>申请人资料</label>
                    </div>
                    <div class="row">
                        <input class="form-control" type="hidden" name="custcod" th:field="*{custcod}">
                        <input class="form-control" type="hidden" name="loanref" th:field="*{loanref}">
                        <input class="form-control" type="hidden" name="lineno" th:field="*{lineno}">
                    </div>
                    <div class="row">
                        <div class="col-lg-12">
                            <div class="col-lg-6">
                                <div class="col-lg-4">
                                    <label>首次还款日：</label>
                                </div>
                                <div class="col-lg-6">
                                    <input class="form-control" name="firstpaydate" th:field="*{firstpaydate}" disabled>
                                </div>
                            </div>
                            <div class="col-lg-6">
                                <div class="col-lg-4">
                                    <label>贷款放款日：</label>
                                </div>
                                <div class="col-lg-6">
                                    <input class="form-control" name="drawdate" th:field="*{drawdate}" disabled>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-lg-12">
                            <div class="col-lg-6">
                                <div class="col-lg-4">
                                    <label>本金：</label>
                                </div>
                                <div class="col-lg-6">
                                    <input class="form-control" name="drawamt" th:field="*{drawamt}" disabled>
                                </div>
                            </div>
                            <div class="col-lg-6">
                                <div class="col-lg-4">
                                    <label>年利率（%）：</label>
                                </div>
                                <div class="col-lg-6">
                                    <input class="form-control" name="schemarate" th:field="*{schemarate}" disabled>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-lg-12">
                            <div class="col-lg-6">
                                <div class="col-lg-4">
                                    <label>期数：</label>
                                </div>
                                <div class="col-lg-6">
                                    <input class="form-control" name="tenor" th:field="*{tenor}" disabled>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        </form>
        <div id="Table" class="panel panel-default">
            <div class="panel-heading">
                <h4 class="panel-title">
                    <a data-toggle="collapse" data-parent="#accordion" href="#collapse22">还款计划表</a>
                </h4>
            </div>
            <div id="collapse22" class="panel-collapse collapse in">
                <div class="panel-body">
                    <div class="row">
                        <div class="col-lg-12">
                            <div id="toolbar" class="btn-group">

                            </div>
                            <table id="payTable"></table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <form id="formTableTwo" th:action="@{/PayTwo}"  th:object="${utilization_entity}" method="post" >
            <div id="TableTwo" class="panel panel-default">
                <div class="panel-heading">
                    <h4 class="panel-title">
                        <ul id="myTabTwo" class="nav nav-tabs">
                            <li class="active"><a href="#home" data-toggle="tab">合计</a></li>
                        </ul>
                    </h4>
                </div>
                <div id="collapse21" class="panel-collapse collapse in">
                    <div class="panel-body">
                        <div class="row">
                            <div class="col-lg-4">
                                <label>总还款额</label>
                            </div>
                            <div class="col-lg-4">
                                <label>总还利息</label>
                            </div>
                            <div class="col-lg-3">
                                <label>总还本金</label>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-lg-3">
                                <input class="form-control" id="amtcount1" disabled>
                            </div>
                            <div class="col-lg-1">
                                <label>=</label>
                            </div>
                            <div class="col-lg-3">
                                <input class="form-control" id="amtcount2" disabled>
                            </div>
                            <div class="col-lg-1">
                                <label>+</label>
                            </div>
                            <div class="col-lg-3">
                                <input class="form-control" id="amtcount3" th:field="*{drawamt}" disabled>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>

<!-- jQuery -->
<script src="/vendor/jquery/jquery.min.js"></script>

<!-- Bootstrap Core JavaScript -->
<script src="/vendor/bootstrap/js/bootstrap.min.js"></script>

<!-- Metis Menu Plugin JavaScript -->
<script src="/vendor/metisMenu/metisMenu.min.js"></script>

<!-- Custom Theme JavaScript -->
<script src="/dist/js/sb-admin-2.js"></script>

<!-- Datepicker JavaScript -->
<script th:src="@{/vendor/datepicker/bootstrap-datepicker.js}"></script>

<!-- BootstrapTables JavaScript -->
<script src="/vendor/bootstrap-table/bootstrap-table.js"></script>
<script src="/vendor/bootstrap-table/bootstrap-table-zh-CN.js"></script>

<!-- PledgeTable JavaScript -->
<script src="/js/own/pay.js"></script>

</body>

</html>
